import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// import * as Icons from "@element-plus/icons-vue";
import axios from "axios";
import { library } from "@fortawesome/fontawesome-svg-core";
import {
  faUserSecret,
  faStream,
  faCircle,
  faReply,
  faUser,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";

library.add(faUserSecret);
library.add(faStream);
library.add(faCircle);
library.add(faReply);
library.add(faUser);
var app = createApp(App);
app.use(ElementPlus);

// // 注册Icons 全局组件
// Object.keys(Icons).forEach((key) => {
//   app.component(key, Icons[key]);
// });
app.component("font-awesome-icon", FontAwesomeIcon);
app.config.globalProperties.$http = axios;
app.mount("#app");
